<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="__JS__/jquery.js"></script>
<img src="__IMG__/Snipaste_2021-01-12_14-56-45.png" alt="" width="300px">
{include file='public/header' /}
<h1><{$str}></h1>
<hr>
<{$arr1[0]}> --   <{$arr1.1}>
<hr>
<{$person['name']}> -- <{$person.sex}>
<hr>
<{$persons[0]['id']}> -- <{$persons.0.name}>
<hr>
<{$obj->name}> -- <{$obj:nicname}>
<hr>
<{$name}> -- <{$age}> -- <{$sex}>
<hr>
{foreach name='arr1' item="v" key="k"}
<{$k}> -- <{$v}><br>
{/foreach}
<hr>
{foreach name='persons' item="v" }
<{$key}> -- <{$v['id']}> -- <{$v['name']}><br>
{/foreach}
<hr>
{foreach $persons as $key=>$v }
<{$key}> -- <{$v['id']}> -- <{$v['name']}><br>
{/foreach}
<hr>
{volist name="persons" id="vo" offset="0" length="7" mod="3" empty="$empty" key="k"}
key:<{$key}> -- k:<{$k}>  mod:<{$mod}> -- <{$vo['id']}> -- <{$vo['name']}><br>
{/volist}
<hr>
<{$name|md5}> -- <{$name|substr=0,6}>
<hr>
<{$time|date='Y-m-d H:i:s'}>  <{$time|date='Y-n-j H:i:s'}>
<hr>
<{$num|format='%02d'}> - <{$wei|default='1'}> - <{$str|raw}>
<hr>
<{$name|md5|upper|raw|substr=0,10}>
<hr>
<{:substr(md5($name),0,10)}>
<hr>
<{$status? '正常':'错误'}>
<hr>
<{$name1 ?? '默认值'}>
<hr>
<{$name ?='默认值'}>
<hr>
<{$name1 ?: 'NO'}>
<hr>
<{$a==$b ? 'yes' : 'no'}>
<hr>
{literal}
{foreach $persons as $key=>$v }
<{$key}> -- <{$v['id']}> -- <{$v['name']}><br>
{/foreach}

{/literal}
<hr>
<{//$name1 ?? '默认值'}>
<hr>
<{/*$status? '正常':'错误' $status? '正常':'错误'*/}>
<hr>
<hr>

{heq name="name" value="张三1"}
相等
{else/}
不相等
{/heq}
<img src="__IMG__" alt="">
<br><br><br><br><br><br>
<br><br><br><br><br><br>
<br><br><br><br><br><br>
<br><br><br><br><br><br>





</body>
</html>